com.supermap.ar.areffect.gltfModel

Class Gltf

  • java.lang.Object
    • com.supermap.ar.areffect.gltfModel.Gltf


  • public class Gltf
    extends java.lang.Object
    Gltf model class
    • Constructor Detail

      • Gltf

        public Gltf()
        The constructor.
      • Gltf

        public Gltf(java.lang.String filePath)
        The constructor.
        Parameters:
        filePath -
    • Method Detail

      • getFilePath

        public java.lang.String getFilePath()
        Gets the path of the gltf file
        Returns:
      • setFilePath

        public void setFilePath(java.lang.String filePath)
        Sets the path of the gltf file
        Parameters:
        filePath -
      • getJsonStr

        public java.lang.String getJsonStr()
        Gets json string of gltf
        Returns:
      • setJsonStr

        public void setJsonStr(java.lang.String jsonStr)
        Sets json string of gltf
        Parameters:
        jsonStr -
      • setAsset

        public void setAsset(Asset asset)
        Sets Asset
        Parameters:
        asset -
      • getAsset

        public Asset getAsset()
        Gets Asset
        Returns:
      • setScene

        public void setScene(java.lang.Integer scene)
        Sets Scene index
        Parameters:
        scene -
      • getScene

        public java.lang.Integer getScene()
        Gets Scene index
        Returns:
      • setScenes

        public void setScenes(java.util.List<Scenes> scenes)
        Sets Scene set
        Parameters:
        scenes -
      • getScenes

        public java.util.List<Scenes> getScenes()
        Gets Scene set
        Returns:
      • setNodes

        public void setNodes(java.util.List<Nodes> nodes)
        Sets node set
        Parameters:
        nodes -
      • getNodes

        public java.util.List<Nodes> getNodes()
        Gets node set
        Returns:
      • setMeshes

        public void setMeshes(java.util.List<Meshes> meshes)
        Sets mesh set
        Parameters:
        meshes -
      • getMeshes

        public java.util.List<Meshes> getMeshes()
        Gets mesh set
        Returns:
      • setAccessors

        public void setAccessors(java.util.List<Accessors> accessors)
        Sets accessor
        Parameters:
        accessors -
      • getAccessors

        public java.util.List<Accessors> getAccessors()
        Gets accessor
        Returns:
      • setBufferViews

        public void setBufferViews(java.util.List<BufferViews> bufferViews)
        Sets tile set
        Parameters:
        bufferViews -
      • getBufferViews

        public java.util.List<BufferViews> getBufferViews()
        Gets tile set
        Returns:
      • setBuffers

        public void setBuffers(java.util.List<Buffers> buffers)
        Sets gltf data buffer zone
        Parameters:
        buffers -
      • getBuffers

        public java.util.List<Buffers> getBuffers()
        Gets gltf data buffer zone
        Returns:
      • setMaterials

        public void setMaterials(java.util.List<Materials> materials)
        Sets material set
        Parameters:
        materials -
      • getMaterials

        public java.util.List<Materials> getMaterials()
        Gets material set
        Returns:
      • setAnimations

        public void setAnimations(java.util.List<Animations> animations)
        Sets animation set
        Parameters:
        animations -
      • getAnimations

        public java.util.List<Animations> getAnimations()
        Gets animation set
        Returns:
      • setTextures

        public void setTextures(java.util.List<Textures> textures)
        Sets texture
        Parameters:
        textures -
      • getTextures

        public java.util.List<Textures> getTextures()
        Gets textures
        Returns:
      • setImages

        public void setImages(java.util.List<Images> images)
        Sets images
        Parameters:
        images -
      • getImages

        public java.util.List<Images> getImages()
        Gets images
        Returns:
      • setSamplers

        public void setSamplers(java.util.List<Samplers> samplers)
        Sets samplers
        Parameters:
        samplers -
      • getSamplers

        public java.util.List<Samplers> getSamplers()
        Gets samplers
        Returns:
      • save

        public boolean save()
        Saves the model
        Returns: